package office.poi.excel.bean;

import office.poi.excel.enums.PropertyType;

/**
 * 对应 office.poi.excel.annotation
 * @author Administrator
 *
 */
public class ExcelColumnBean {
	/**
	 * 实体字段名
	 */
	private String beanName;
	/**
	 * 列名
	 */
	private String columnName;
	/**
	 * 该列是否必填
	 */
	private Boolean required;
	/**
	 * 该列验证类型
	 */
	private PropertyType propertyType;
	/**
	 * 该列字符长度
	 */
	private Integer length;
	/**
	 * 该列小数点前多少位
	 */
	private Integer precision;
	/**
	 * 该列小数点后多少位
	 */
	private Integer scale;
	public ExcelColumnBean() {
		super();
	}
	
	public ExcelColumnBean(String beanName, String columnName, Boolean required, PropertyType propertyType,
			Integer length, Integer precision, Integer scale) {
		super();
		this.beanName = beanName;
		this.columnName = columnName;
		this.required = required;
		this.propertyType = propertyType;
		this.length = length;
		this.precision = precision;
		this.scale = scale;
	}

	public String getBeanName() {
		return beanName;
	}

	public void setBeanName(String beanName) {
		this.beanName = beanName;
	}

	public String getColumnName() {
		return columnName;
	}
	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}
	public Boolean getRequired() {
		return required;
	}
	public void setRequired(Boolean required) {
		this.required = required;
	}
	public PropertyType getPropertyType() {
		return propertyType;
	}
	public void setPropertyType(PropertyType propertyType) {
		this.propertyType = propertyType;
	}
	public Integer getLength() {
		return length;
	}
	public void setLength(Integer length) {
		this.length = length;
	}
	public Integer getPrecision() {
		return precision;
	}
	public void setPrecision(Integer precision) {
		this.precision = precision;
	}
	public Integer getScale() {
		return scale;
	}
	public void setScale(Integer scale) {
		this.scale = scale;
	}
	
}
